package com.woniu.his.dms.client;

import com.woniu.his.dms.client.param.CreateCatLogParam;
import com.woniu.his.dms.client.result.DmsDiseCatalogResult;
import com.woniu.his.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @version: java version 1.8
 * @Author: Mr tao
 * @description:
 * @date: 2022-11-27 22:25
 */
@FeignClient(contextId = "diseCataLogClient", name = "dms", path = "dms")
public interface DiseCataLogClient {

    /**
     * 新增一个诊断目录
     * @param param
     * @return
     */
    @PostMapping("/createCataLog")
    public Result createCataLog(@RequestBody CreateCatLogParam param);

    /**
     * 删除诊断目录
     * @return
     */
    @DeleteMapping("/deleteCataLog")
    public Result deleteCataLog(@RequestParam("ids")List<Long> ids);

    /**
     * 修改诊断目录
     * @return
     */
    @PutMapping("/updateCataLog")
    public Result updateCataLog(@RequestBody CreateCatLogParam param);

    /**
     * 查询全部目录
     * @return
     */
    @GetMapping("/listAllCatalog")
    public Result<List<DmsDiseCatalogResult>> listAllCatalog();
}
